package com.socialuni.common.user.sdk.utils.model;

import com.socialuni.common.user.model.DO.CommonUserDO;
import com.socialuni.common.user.sdk.model.RO.CommonUserRO;

public class CommonUserROUtil {
    public static CommonUserRO getMineUser(CommonUserDO userDO) {
        return CommonUserROUtil.userDOToRO(userDO, true);
    }

    public static CommonUserRO userDOToRO(CommonUserDO userDTO, Boolean isMine) {
        //user基础信息
        CommonUserRO user = new CommonUserRO();
        //user详情信息
        user.setId(userDTO.getId());
        user.setNickname(userDTO.getNickname());
        user.setAvatar(userDTO.getAvatar());
        user.setGender(userDTO.getGender());
        user.setAge(userDTO.getAge());
        user.setCity(userDTO.getCity());
        return user;
    }
}